Fix rendering of theme parts on Windows XP
authorAlexander Larsson <alexl@redhat.com>
Fri, 9 Mar 2012 15:37:11 +0000 (16:37 +0100)
committerAlexander Larsson <alexl@redhat.com>
Fri, 9 Mar 2012 15:43:00 +0000 (16:43 +0100)
commitf4a68dff88f242845ab96ad9e40ba22f96b394df
treed6e02a6b82a90f1fb26edaa005c364995f80b9ce
parent114b45c7ebb03b6b63dcbb51855d5ea87f634171
Fix rendering of theme parts on Windows XP

It seems XP doesn't handle drawing non-alpha theme parts
on alpha destinations. We fix this by using alpha bitmaps only when
needed.

However this means any non-drawn area by the theme part is now draw
black, so we must take more care to only draw where the theme part draws,
so we find the theme part size when available.
gtk/gtkcssimagewin32.c
gtk/gtkwin32theme.c
gtk/gtkwin32themeprivate.h